<?php
namespace app\home\validate;

use think\Validate;

class MonthTimeCheck extends Validate
{
    protected $rule = [
        'year' => 'require',
        'month' => 'require',
        'eid' => 'require',
        'id' => 'require',
        'work_hours' => 'require',
    ];

    protected $message = [
        'year.require' => '年不能为空',
        'month.require' => '月不能为空',
        'eid.require' => '缺少企业更新条件',
        'id.require' => '缺少更新条件',
        'work_hours.require' => '工时不能为空',
    ];

    protected $scene = [
        'add' => ['year','month','eid','work_hours'],
        'edit' => ['year','month','eid','work_hours','id'],
    ];
}
